﻿@{  string aid = ViewBag.aid as string;
    Layout = null;
}
@model List<DataAccess.DTO.ProductIndex>

<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8" />
    <meta name="renderer" content="webkit">
    <meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=no">
    <meta name="format-detection" content="telephone=no" />
    <title>我的收藏</title>
    <link href="/css/style.css" rel="stylesheet" />
    <link href="/css/swipper.css" rel="stylesheet" />
    <link href="/css/preload.css" rel="stylesheet" />
    <link href="/css/loading.css" rel="stylesheet" />

    <script>
        var deviceWidth = document.documentElement.clientWidth;
        if (deviceWidth > 750) deviceWidth = 750;
        document.documentElement.style.fontSize = deviceWidth / 7.5 + "px";
        document.documentElement.style.width = "100%";
    </script>
    <script>
        var weid = "3";

    </script>
    <script src="/js/htool.js"></script>
    <script src="/js/asynloading.js"></script>
</head>
<body>
    <div id="containter" class="container">
        <div class="goods_list collection_list">
            <ul id="lists" data-url="">
                @foreach (var item in Model)
                {  
                <li class="relative">
                    <div class="goods_pic">
                        <a href="/@(aid)/p_@(item.auctionId).html">
                            <div class="allpreContainer">
                                <div class="inoutbg" style="background-image: url(@item.pictUrl); background-size: cover; background-position: 50% 50%; background-repeat: no-repeat;">
                                </div>
                                <img class="preloadbg" src-data="@item.pictUrl" src="" loaded="false" />
                                <div class="DSbg" style="background-size: cover; background-position: 50% 50%; background-repeat: no-repeat;">
                                </div>
                            </div>
                        </a>
                    </div>
                    <div class="goods_bottom">
                        <div>
                            <a class="goods_text" href="/@(aid)/p_@(item.auctionId).html">@(item.title)</a>
                        </div>
                        <div class="comefrom">去天猫</div>
                        <div style=" position: absolute;top:65px;left: 10px;font-size:12px;">销量：@item.biz30day</div>
                        <div class="goodspc">
                            <div class="goods_price">
                                <span style="font-size:12px;">券后价:</span><span>@(item.zkPrice-item.couponAmount)</span>
                            </div>
                            <a href="javascript:;" class="new-coupon" data-img="@item.pictUrl" data-dluid="0" data-rxyjxs="1" data-id="602540"><span>马上领劵</span><span>立减<em class="ljmoney">@item.couponAmount</em>元</span></a>
                        </div>
                    </div>
                </li>
                    
                }
              
            </ul>
        </div>
    </div>
    <!--底部菜单开始-->
    @Html.Partial("_menu")
    <!--底部菜单结束-->

</body>
</html>
<script src="/js/jquery-1.7.2.min.js"></script>
<script src="/js/clipboard.min.js"></script>
<script src="/js/idangerous.swiper.min.js"></script>
<script src="/js/common_phone.js"></script>
<script src="/js/fun.js"></script>
<script>
    $(function () {
        if ($("#lists li").length < 1) {
            var html = "";
            html += '<div class="nocoll">';
            html += '<img src="/images/hu.png">';
            html += '<p>您的收藏夹还没有商品<br>快去收藏商品！</p>';
            html += '<div class="miaotui"><a href="/">首页</a></div>';
            html += '</div>';
            document.querySelector(".container").innerHTML = html;
            $(".nocoll").height(document.documentElement.clientHeight + "px");
        }
    })
</script>
<script type="text/javascript">
    $(function () {
        var clipboard = new Clipboard(".taokaocopy", {
            text: function () {
                return $(".copybox1").val();
            }
        });

        clipboard.on('success', function (e) {
            //alert("链接已复制到剪贴板");
            $(".taokaocopy").html("<img src='/images/copy1.png'>");
        });

        clipboard.on('error', function (e) {
            //console.log(e);
            $(".taokaocopy").html("<img src='/images/copy2.png'>");
        })
    });
</script>
